package com.itqf.mybatis;

import com.itqf.mapper.DtsAdminMapper;
import com.itqf.pojo.DtsAdmin;
import com.itqf.utils.SqlSessionUtils;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * projectName: mybatisgp8
 *
 * @author: 赵伟风
 * time: 2021/7/30 10:35
 * description:练习查询
 */
public class UseTypeHandlerQuery {


    public static void main(String[] args) {

        SqlSession sqlSession = SqlSessionUtils.openSession();

        DtsAdminMapper mapper = sqlSession.getMapper(DtsAdminMapper.class);

        List<DtsAdmin> dtsAdmins = mapper.queryAll();

        System.out.println("dtsAdmins = " + dtsAdmins);


        sqlSession.close();


    }
}
